package com.lzhsite.technology.designPattern.mediator.DepartmentDemo;

public class Department
{
    private String departmentId;
    private String departmentName;

    public String getDepartmentId()
    {
        return departmentId;
    }

    public void setDepartmentId(String departmentId)
    {
        this.departmentId = departmentId;
    }

    public String getDepartmentName()
    {
        return departmentName;
    }

    public void setDepartmentName(String departmentName)
    {
        this.departmentName = departmentName;
    }

    public boolean deleteDepartment()
    {
        DepartmentUserMediatorImplement mediator = DepartmentUserMediatorImplement.getInstance();
        mediator.deleteDepartment(departmentId);
        return true;
    }
}
